Rooting and unrooting the device is controlled via the device property persist.sys.root_access which can be changed either by command line or with the HTTP API.
This guide walks you through the process of adding a custom system app, RootToggle, which will allow you to switch root access on and off without needing Genymotion's paid root access feature.